import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Shapes 1.15

SubView0{
    id: root
    width: 252
    height: 325
    Button
    {
        id:btnHHL
        x: 7
        y: 19
        width: 126
        height: 50
        background: Rectangle{
            border.width: 0
            color: "#7584C2"
                }

        text: qsTr("上上限")
        font.pixelSize: 25
        palette.buttonText: "white"
    }
    TextField
    {
        id: txtHHL
        x: 146
        y: 24
        width: 100
        height: 40
        text: mymodbus.upperUpperLimit
        readOnly: true
        color: "white"
        horizontalAlignment: Text.AlignHCenter
        font.pixelSize: 20
        background: Rectangle {
                    anchors.fill: parent
                    color: "transparent"
                    border.width: 0
                    border.color: "white"
                    // 绘制一条边框
                    Shape {
                        anchors.fill: parent
                        ShapePath {
                            strokeWidth: 3
                            strokeColor: "white"
                            strokeStyle: ShapePath.SolidLine
                            startX: 0
                            startY: txtHHL.height
                            PathLine {
                                x: txtHHL.width
                                y: txtHHL.height
                            }
                        }
                    }
                }
    }

    Button
    {
        id:btnHL
        x: 7
        y: 92
        width: 126
        height: 50
        background: Rectangle{
            border.width: 0
            color: "#7584C2"
                }

        text: qsTr("上限")
        font.pixelSize: 25
        palette.buttonText: "white"
    }
    TextField
    {
        id: txtHL
        x: 146
        y: 97
        width: 100
        height: 40
        text: mymodbus.upperLimit
        readOnly: true
        color: "white"
        horizontalAlignment: Text.AlignHCenter
        font.pixelSize: 20
        background: Rectangle {
                    anchors.fill: parent
                    color: "transparent"
                    border.width: 0
                    border.color: "white"
                    // 绘制一条边框
                    Shape {
                        anchors.fill: parent
                        ShapePath {
                            strokeWidth: 3
                            strokeColor: "white"
                            strokeStyle: ShapePath.SolidLine
                            startX: 0
                            startY: txtHL.height
                            PathLine {
                                x: txtHL.width
                                y: txtHL.height
                            }
                        }
                    }
                }
    }
    Button
    {
        id:btnLL
        x: 7
        y: 177
        width: 126
        height: 50
        background: Rectangle{
            border.width: 0
            color: "#7584C2"
                }

        text: qsTr("下限")
        font.pixelSize: 25
        palette.buttonText: "white"
    }
    TextField
    {
        id: txtLL
        x: 146
        y: 182
        width: 100
        height: 40
        text: mymodbus.lowerLimit
        readOnly: true
        color: "white"
        horizontalAlignment: Text.AlignHCenter
        font.pixelSize: 20
        background: Rectangle {
                    anchors.fill: parent
                    color: "transparent"
                    border.width: 0
                    border.color: "white"
                    // 绘制一条边框
                    Shape {
                        anchors.fill: parent
                        ShapePath {
                            strokeWidth: 3
                            strokeColor: "white"
                            strokeStyle: ShapePath.SolidLine
                            startX: 0
                            startY: txtLL.height
                            PathLine {
                                x: txtLL.width
                                y: txtLL.height
                            }
                        }
                    }
                }
    }
    Button
    {
        id:btnLLL
        x: 8
        y: 255
        width: 126
        height: 50
        background: Rectangle{
            border.width: 0
            color: "#7584C2"
                }

        text: qsTr("下下限")
        font.pixelSize: 25
        palette.buttonText: "white"
    }
    TextField
    {
        id: txtLLL
        x: 147
        y: 260
        width: 100
        height: 40
        text: mymodbus.lowerLowerLimit
        readOnly: true
        color: "white"
        horizontalAlignment: Text.AlignHCenter
        font.pixelSize: 20
        background: Rectangle {
                    anchors.fill: parent
                    color: "transparent"
                    border.width: 0
                    border.color: "white"
                    // 绘制一条边框
                    Shape {
                        anchors.fill: parent
                        ShapePath {
                            strokeWidth: 3
                            strokeColor: "white"
                            strokeStyle: ShapePath.SolidLine
                            startX: 0
                            startY: txtLLL.height
                            PathLine {
                                x: txtLLL.width
                                y: txtLLL.height
                            }
                        }
                    }
                }
    }
}

